#ifndef NODE_H
#define NODE_H

#include <QString>
#include <QObject>
//#include <algorithm>
#include <memory>

class Node:public QObject
{
    unsigned int m_id;//id
    int m_pld;//parent id
    bool m_status;//active, not active
    QString m_message;//QMessageBox


public:
    Node(QObject *parent = 0):QObject(parent){};
    Node(Node*);
    Node(unsigned int id, int pld, bool status, QString message, QObject *parent = 0);
    Node(const Node&) = delete;
    Node(Node&&)=default;
    ~Node()=default;

    void setId(unsigned int id){m_id = id;}
    void setPld(int pld){m_pld = pld;}
    void setStatus(bool status){m_status = status;}
    void setMessage(QString message){m_message = message;}

    unsigned int id() const
        {return m_id;}
    int pld()const
        {return m_pld;}
    bool status() const
        {return m_status;}
    QString message()const
        {return m_message;}

};

#endif // NODE_H
